package com.group2.equipment.feign;

import com.group2.equipment.entity.AddressVO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

/**
 * @author binghan
 * @version 1.0
 * @description: TODO 远程调用Address
 * @date 2022/6/7 15:07
 */
@FeignClient(value = "springmvcdemo",url = "172.16.4.205:8087/")
public interface AddressFeign {

    /**
     * 获取指定id列表地址信息
     * @param list
     * @return
     */
    @PostMapping("/test/getAddressByIdList")
    List getAddressByIdList(@RequestBody List list);


    /**
     * 获取所有的地址信息
     * @return
     */
    @GetMapping("/test/selectAll")
    List<AddressVO> selectAll();
}
